package com.kunchi.oms.order.po;

import com.esotericsoftware.kryo.NotNull;
import com.kunchi.isb.base.dto.ISBDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;


@ApiModel(value="订单对象",description="包含订单名称，订单价格，订单编码")
public class Order extends ISBDto {

    @ApiModelProperty(value = "订单编码", name = "订单编码", example = "OR10001")
    @Size(min = 10,max = 20,message = "订单编码不小于10且不得超过20")
    private String orderNumber;

    @ApiModelProperty(value = "名称", name = "商品名称", example = "牙膏")
    private String orderName;

    @ApiModelProperty(value = "价格", name = "商品价格", example = "18")
    private String orderPrice;

    @ApiModelProperty(value = "状态", name = "订单状态", example = "complete")
    @NotEmpty(message = "订单状态不可为空")
    private String orderStatus;


    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public String getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(String orderPrice) {
        this.orderPrice = orderPrice;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }
}